﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Example {
  public partial class WebForm2_7 : System.Web.UI.Page {
    protected void Page_Load(object sender, EventArgs e) {

    }

    protected void listFruit_SelectedIndexChanged(object sender, EventArgs e) {
      lblView.Text = "";
      foreach (ListItem item in listFruit.Items)
        if (item.Selected)
          lblView.Text += item.Value + "  ";
    }
  }
}